#include "udpclient.hpp"
#include <memory>
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        std::cout << "Usage:\n\t" << argv[0] << " " << "serve_ip " << "serve_port" << std::endl;
        exit(-1);
    }
    int16_t serve_port = atoi(argv[2]);
    std::unique_ptr<udp_client> client(new udp_client(argv[1], serve_port));
    client->init();
    client->start();
    return 0;
}